import { Component, OnInit, ViewChild } from '@angular/core'
import { Router } from '@angular/router'
import { animation, style, animate } from '@angular/animations'
import { PublicService } from '@shared/services/public.service'
// import { HeaderI18n2Component } from './i18n2.component';
@Component({
  selector: 'app-admin',
  templateUrl: './admin.component.html',
  styleUrls: ['./admin.component.less'],
})
export class AdminComponent implements OnInit {
  constructor(
    private router: Router,
    public publicService: PublicService,
  ) {}
  // @ViewChild(HeaderI18n2Component)
  // private HeaderI18n2: HeaderI18n2Component;
  start: number
  end: number
  time: string
  ngOnInit() {
    this.publicService.setTitle('首页')
  }

  login() {
    this.router.navigate(['/dashboard'], {})
  }
  // useAnimation( fadeAnimation, params: { } );
}
